package com.zwz.entity;

import io.github.classgraph.json.Id;
import lombok.Data;
import org.springframework.util.IdGenerator;

import java.util.Date;

@Data
public class AdministrativePenalty {

    private Integer id;  // 关联主表ID
    private Boolean hasPenalty;
    private Integer penaltyCount;
    private Date decisionDate;
    private Date publishDate;
    private String violationType;
    private String authority;
    private String penaltyResult;

    private Integer  enterpriseId;

    // Lombok @Data 可替代以下代码
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    // 其他字段的完整getter/setter...
    public String getPenaltyResult() { return penaltyResult; }
    public void setPenaltyResult(String penaltyResult) { this.penaltyResult = penaltyResult; }

    public Boolean getHasPenalty() {
        return hasPenalty;
    }

    public void setHasPenalty(Boolean hasPenalty) {
        this.hasPenalty = hasPenalty;
    }

    public Integer getPenaltyCount() {
        return penaltyCount;
    }

    public void setPenaltyCount(Integer penaltyCount) {
        this.penaltyCount = penaltyCount;
    }

    public Date getDecisionDate() {
        return decisionDate;
    }

    //防御性拷贝（Defensive Copy）
    public void setDecisionDate(Date decisionDate) {
        this.decisionDate = decisionDate;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getViolationType() {
        return violationType;
    }

    public void setViolationType(String violationType) {
        this.violationType = violationType;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }
}